//
// Maths.hpp for  in /home/goldbe_y//cpp/Maths/209ajust
//
// Made by yoni goldberg
// Login   <goldbe_y@epitech.net>
//
// Started on  Sat Jun 11 17:12:59 2011 yoni goldberg
// Last update Sun Jun 12 00:33:04 2011 leo faucon
//

#ifndef __MATHS_H__
# define __MATHS_H__

#include <iostream>
#include <iomanip>
#include <vector>
#include <complex>

class Maths
{
public:
  Maths(std::vector<float>, std::vector<float>);
  ~Maths() {};

  float			&getMoy() {return moy;};
  float			&getProb() {return prob;};
  std::vector<float>	getOx() const {return Ox;};
  std::vector<float>	getTx() const {return Tx;};

private:
  void		affTab(std::vector<float> & tab);
  void		Moyenne();
  void		Probabilite();
  void		Calc();

  double		cnn(int nb1, int nb2);
private:
  std::vector<float> x;
  std::vector<float> Ox;
  std::vector<float> Tx;
  int		total;
  float		moy;
  float		prob;
};


#endif /* !__MATHS_H__ */
